class RMM_ui_punishment { // by Tyrghen
	idd = 60509;
	movingEnable = 1;
	enableSimulation = 1;
	onLoad = "call RMM_ui_punishment_init;";

	class controls {
		class Background : CUI_Frame {
			y = CUI_Row_Y(0);
			h = CUI_Row_DY(0,15);
			w = CUI_Box_W * 2;
		};
		class PunishmentCaption : CUI_Caption {
			text = $STR_DLG_PUNISHMENT;
			y = CUI_Row_Y(0);
			w = CUI_Box_W * 2;
		};
		class PlayerCaption : CUI_Caption {
			text = $STR_DLG_SELECT_PLAYER;
			y = CUI_Row_Y(2);
			w = CUI_Box_W * 2;
		};
		class PlayerSelection : CUI_Combo {
			idc = 1101;
			y = CUI_Row_Y(3);
			w = CUI_Box_W * 2;
			onLBSelChanged = "_ctrl = _this select 0; _idx = _this select 1; RMM_ui_punishment set [1, ((RMM_ui_punishment select 0) select _idx)];";
		};
		class ActionCaption : CUI_Caption {
			text = $STR_DLG_SELECT_ACTION;
			y = CUI_Row_Y(5);
			w = CUI_Box_W * 2;
		};
		class Jail : CUI_Button {
			idc=2;
			text = $STR_DLG_PUNISH_JAIL;
			w = CUI_Box_W * 2;
			y = CUI_Row_Y(7);
			action = "[(lbCurSel 1101),RMM_ui_punishment select 1] call RMM_ui_punishment_jail; closedialog 0;";
			default = true;
		};
		class Unjail : CUI_Button {
			idc=3;
			text = $STR_DLG_PUNISH_UNJAIL;
			w = CUI_Box_W * 2;
			y = CUI_Row_Y(8);
			action = "[(lbCurSel 1101),RMM_ui_punishment select 1] call RMM_ui_punishment_release; closedialog 0;";
			default = true;
		};
		class Kick : CUI_Button {
			idc=4;
			text = $STR_DLG_PUNISH_KICK;
			w = CUI_Box_W * 2;
			y = CUI_Row_Y(9);
			action = "[(lbCurSel 1101),RMM_ui_punishment select 1] spawn RMM_ui_punishment_kick; closedialog 0;";
			default = true;
		};
		class Ban : CUI_Button {
			idc=5;
			text = $STR_DLG_PUNISH_BAN;
			w = CUI_Box_W * 2;
			y = CUI_Row_Y(10);
			action = "[(lbCurSel 1101),RMM_ui_punishment select 1] spawn RMM_ui_punishment_ban; closedialog 0;";
			default = true;
		};
		class BannedPlayerSelection : CUI_Combo {
			idc = 1102;
			y = CUI_Row_Y(12);
			w = CUI_Box_W * 2;
			onLBSelChanged = "_ctrl = _this select 0; _idx = _this select 1; RMM_ui_punishment_banned set [1, ((RMM_ui_punishment_banned select 0) select _idx)];";
		};
		class Unban : CUI_Button {
			idc=2;
			text = $STR_DLG_PUNISH_UNBAN;
			w = CUI_Box_W * 2;
			y = CUI_Row_Y(13);
			action = "[(lbCurSel 1102),RMM_ui_punishment_banned select 1] spawn RMM_ui_punishment_unban;  closedialog 0;";
			default = true;
		};
		class Close : CUI_Button {
			idc=6;
			text = $STR_DLG_CLOSE;
			w = CUI_Box_W * 2;
			y = CUI_Row_Y(15);
			action = "closeDialog 0;";
			default = true;
		};
	};
};
class RMM_ui_confirm_punishment { // by Tyrghen
	idd = 60709;
	movingEnable = 1;
	enableSimulation = 1;
	onLoad = "RMM_ui_confirm_punishment=0;";

	class controls {
		class Background : CUI_Frame {
			y = CUI_Row_Y(0);
			h = CUI_Row_DY(0,4);
			w = CUI_Box_W * 2;
		};
		class PunishmentCaption : CUI_Caption {
			text = $STR_PUNISHMENT_CONFIRM;
			y = CUI_Row_Y(0);
			w = CUI_Box_W * 2;
		};
		class PlayerCaption : CUI_Caption {
			idc=1;
			text = "";
			y = CUI_Row_Y(2);
			w = CUI_Box_W * 2;
		};
		class OKButton : CUI_Button {
			text = $STR_PUNISHMENT_OK;
			w = CUI_Box_W * 2 / 3;
			y = CUI_Row_Y(4);
			action = "RMM_ui_confirm_punishment=1; closedialog 0;";
			default = true;
		};
		class CancelButton : CUI_Button {
			text = $STR_PUNISHMENT_CANCEL;
			x = CUI_Box_X(1) + (CUI_Box_W * (1/3));
			w = CUI_Box_W * 2 / 3;
			y = CUI_Row_Y(4);
			action = "RMM_ui_confirm_punishment=-1; closedialog 0;";
			default = true;
		};
	};
};

class RMM_ui_teleportbase { // by Tyrghen
	idd = 60809;
	movingEnable = 1;
	enableSimulation = 1;
	onLoad = "call RMM_ui_teleportbase_init;";

	class controls {
		class Background : CUI_Frame {
			y = CUI_Row_Y(0);
			h = CUI_Row_DY(0,4);
			w = CUI_Box_W * 2;
		};
		class TeleportCaption : CUI_Caption {
			text = $STR_TELEPORT_TO_BASE;
			y = CUI_Row_Y(0);
			w = CUI_Box_W * 2;
		};
		class PlayerSelection : CUI_Combo {
			idc = 1101;
			y = CUI_Row_Y(2);
			w = CUI_Box_W * 2;
			onLBSelChanged = "_ctrl = _this select 0; _idx = _this select 1; RMM_ui_teleportbase set [1, ((RMM_ui_teleportbase select 0) select _idx)];";
		};
		class TeleportButton : CUI_Button {
			text = $STR_TELEPORT_SUBMIT;
			w = CUI_Box_W * 2 / 3;
			y = CUI_Row_Y(4);
			action = "[(lbCurSel 1101),RMM_ui_teleportbase select 1] call RMM_ui_teleportbase_teleport; closedialog 0;";
			default = true;
		};
		class CancelButton : CUI_Button {
			text = $STR_TELEPORT_CANCEL;
			x = CUI_Box_X(1) + (CUI_Box_W * (1/3));
			w = CUI_Box_W * 2 / 3;
			y = CUI_Row_Y(4);
			action = "RMM_ui_teleportbase set [1,objNull]; closedialog 0;";
			default = true;
		};
	};
};